Skip to main content

Customize Header content of AIV

  • This document contains steps to customize the Header contents AIV Application. The user can define his Header contents by applying some minor changes in JSON files.

Objective

  • Customize Header content of AIV

Skill Level Required

  • Basic knowledge of JSON.
info
  • Header Menu content is the quick links of frequently used or important page redirection links provided at the bottom-most side of the AIV hamburger menu.

    Docusaurus Slash Introduction

danger
  • Please make sure you keep a backup of the existing “header_menu.json” file before making any changes to it.

Follow below steps to understand this JSON file

  1. Go to your directory/AIV/tomcat/webapps/aiv/assets/json folder and open “header_menu.json” in text editor. In this JSON file, you can see the different properties listed below.

  2. Open this file in any text editor software, the content of this file should be like the below image:

    Docusaurus Slash Introduction

  3. By default, this JSON file contains 3 Header menus listed in the JSON array of the menu as you can see in the above image.

  4. Open the AIV application in the browser and log in with valid credentials. You will land on the landing page after successful login.

  5. Now click on the Hamburger icon and you can see at the bottom-most of the menu, 3 options as shown in the below image:

    Docusaurus Slash Introduction

  6. All these 3 options listed here are fetched from header_menu.json.

  7. Users can customize this text and associated links of these header options by changing in header_menu.json file.

  8. If the user wants to add a new option that will redirect the user to google.com then open the header_menu.json file and add a new option in JSON array as shown in the below image:

    Docusaurus Slash Introduction

  9. Here whatever text you provide in the name key, will be displayed in the header menu, and the URL on which you need to redirect should be provided in the URL key in the JSON file.

  10. Save this file and reload AIV, now when you click on the Hamburger icon and look at the header menu, you will find this new option added in the list as shown below:

    Docusaurus Slash Introduction

  11. Here the name of the option will be the name field text you have provided in the JSON file and when you click on this option, it will take you to the google.co.in page.

Note
  • The order of the menu options will be set as per the sequence of array items listed in the JSON file.
  1. If you want to display the search web option in the first index, change the order of JSON array like the below image:

    Docusaurus Slash Introduction

  2. Save these changes and reload the AIV page. Click on the Hamburger icon and you will see now Web search option is displayed at the top of the menu.

    Docusaurus Slash Introduction